import request from '@/utils/request'

export const getCheckItemPage = (params) => {
  return request.get(`/qc/checkItem/page`, { params })
}


export const addCheckItem = (data) => {
  return request.post(`/qc/checkItem`, data)
}


export const getCheckItemById = (id) => {
  return request.get(`/qc/checkItem/${id}`)
}


export const editCheckItem = (data) => {
  return request.put(`/qc/checkItem`, data)
}

export const getCheckTypeList = () => {
  return request({
    url: '/qc/checkType/list', 
    method: 'get'
  })
}


export const deleteCheckItems = (ids) => {
  return request.delete(`/qc/checkItem/delete`, { data: ids })
}